
    class Person{
        private String name;
        public int age;
        public void eat(){
            System.out.println("吃饭！！！");
        }
        public void show(){
            System.out.println(name + " " + age);
        }
    }
    public class Test{
        public static void main(String[] args) {
            Person person = new Person();
//            person.name = "张三";//name被private封装，无法调用
            person.eat();
        }
    }

